import { Injectable, InjectByName } from '../../decorators/inject';
import { TableEvent } from '../table-event';
import { NTableEvent } from '../../types/cors';
import { IValueBase, IValueBoolean, IValueEmpty, IValueError, IValueNumber, IValueString, ActualValue } from './types';

@Injectable()
export class ValueBoolean implements IValueBoolean {
  public type: 'value' = 'value';
  public dataType: 'boolean' = 'boolean';
  public value: boolean
  constructor() {

  }
  getOriginDataType(){
    return '';
  };
  public update(val: any) {
    this.value = val;
  }
  public getValue() {
    return this.value;
  }
  public toString() {
    return this.value ? 'TRUE' : 'FALSE';
  }
  public destroy() {

  }
}